package cn.dada.dadarecipes.user.personal_account_record.service.impl;

import cn.dada.dadarecipes.user.personal_account_record.mapper.PersonalAccountRecordMapper;
import cn.dada.dadarecipes.user.personal_account_record.pojo.vo.PersonalAccountRecordVO;
import cn.dada.dadarecipes.user.personal_account_record.service.PersonalAccountRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collections;
import java.util.List;

@Slf4j
@Service
public class PersonalAccountRecordServiceImpl implements PersonalAccountRecordService {
    @Autowired
    PersonalAccountRecordMapper personalAccountRecordMapper;

    @Override
    public List<PersonalAccountRecordVO> query(Long id) {
        log.debug("查询账户日志:id={}", id);
        // 调用Mapper层方法查询账户日志
        List<PersonalAccountRecordVO> recordVO = personalAccountRecordMapper.query(id);
        return recordVO;
    }
}
